<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript">

</script>
</head>
<body>
<table border="1" width="800">
	<tr>
		<td colspan="8" align="right"><a href="addCar.jsp">录入车位</a></td>
	</tr>
	<tr>
		<td>编号</td>
		<td>车位号</td>
		<td>车主名称</td>
		<td>状态</td>
		<td>价格</td>
		<td>操作</td>
	</tr>
	<c:forEach items="${list}" var="student">
		<tr>
			<td>${student.car_id}</td>
			<td>${student.car_sn}</td>
			<td>${student.car_name}</td>
			<td>${student.car_stutus}</td>
			<td>${student.car_jiage}</td>
			<td>
				<a href="/car/editCar.jsp?car_id=${student.car_id}&car_sn=${student.car_sn}&car_name=${student.car_name}&car_stutus=${student.car_stutus}&car_jiage=${student.car_jiage}">编辑</a>|
				<a href="/car/del?car_id=${student.car_id}">删除</a></td>
		</tr>
	</c:forEach>
</table>
</body>
</html>